package cn.tedu.calendar.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class CalendarParam {
    @ApiModelProperty(value = "日历id")
    private String ids;
    @ApiModelProperty(value = "用户id")
    private Long userId;
    @ApiModelProperty(value = "创建时间")
    //前端传入的时间数据式string格式，需要转换
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date dayTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    @ApiModelProperty(value = "备忘录内容")
    private String content;

}